cmake_minimum_required(VERSION 2.8)

project (EasyPR)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

find_package(OpenCV REQUIRED)

set(CMAKE_SOURCE_DIR ./src)

set(SOURCE_FILES
    src/main.cpp
    src/core/core_func.cpp
    src/core/chars_identify.cpp
    src/core/chars_recognise.cpp
    src/core/chars_segment.cpp
    src/core/feature.cpp
    src/core/plate.cpp
    src/core/plate_detect.cpp
    src/core/plate_judge.cpp
    src/core/plate_locate.cpp
    src/core/plate_recognize.cpp
    src/test/accuracy_test.cpp
    src/test/test.cpp
    src/train/ann_train.cpp
    src/train/svm_train.cpp
    src/util/deface.cpp
    src/util/general_test_prepare.cpp
    src/util/generate_gdts.cpp
    src/util/learn_prepare.cpp
    src/util/mc_data_prepare.cpp
    src/util/util.cpp
    src/util/CParser.cpp
)

add_executable(EasyPR ${SOURCE_FILES})
target_link_libraries(EasyPR ${OpenCV_LIBS})
